<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的云播放 - 会员中心 -{$sitename}</title>
{include file="center_include"/}
</head>
<body>
{include file="center_header"/}
<div id="content" class="layout">
  <div class="ui-box ui-qire fn-clear" id="i-box">
    <div id="i-bar">
 {include file="center_nav"/} 
 {include file="center_fk"/}
    </div>
    <!-- // i-bar end -->
    <div class="i-box-cnt" id="i-cnt">
      <div id="i-history">
        <div class="ui-title i-tab-nav-box fn-clear">
          <ul class="i-tab-nav">
            <li class="current">播放记录</li>
          </ul>
           <a class="ui-edit ui-edit-short cleanup fav-cancel" href="javascript:;" data="{:zanpian_user_url('user/center/dellog',array('uid'=>$userinfo.userid))}">全部清空</a></div>
        <div class="ui-cnt">
          <ul class="user-txt-list his-list fn-clear" id="xlist">
           <li class="loading"><img src="{$apicss}user/new/images/loading.gif"/>正在努力为您加载中... </li>
          </ul>
          <!-- // i-intro End -->
          <div class="loading pages"><ul class="pagination" id="xpage" style="float:right"></ul></div>
          <!-- // list-page End -->
        </div>
      </div>
      <!-- // ui-box End -->
    </div>
    <!-- // i-cnt End -->
 <script type="text/javascript">
			function pagegoo(url){
				$.ajax({ url: url,  success: function(data){
					if('' != data.ajaxtxt )
				   {
					$("#xlist").html(data.ajaxtxt);
					$("#xpage").html(data.pages);
					$("#xpage a").click(function (e){
						pagegoo(e.target);
						return false;}
					);

						$(".del").click(function(){
							var parents=$(this).parents('li');
							$.showfloatdiv({
								wantclose:2,
								succdo:function(r){
									parents.remove();
								},txt:'确认删除?'
							});
						});

					// his-list li
					$(".his-list li").hover(function(){
						$(this).find(".ui-del").show();
						$(this).addClass("hover");
					},function(){
						$(this).find(".ui-del").hide();
						$(this).removeClass("hover");
					});	
				  }
				  else{
					   	$("#xlist").html("<li class='kong'>您当前没有播放记录!</span></li>");

				}},dataType:'json'});
				return false;				
			}
			pagegoo("{:zanpian_user_url('user/center/playlog')}");	
			$(".ui-edit-short").click(function(event){
				$.showfloatdiv({
					wantclose:2,
					succdo:function(r){
						//parents.remove();
						if(parseInt(r.rcode)==1)
						{
						$("#xlist").html('<li class="kong">暂无历史记录</li>');
						$("#xpage").html('');
						}
					},txt:'确认清空播放记录?'
				});
			});
		</script>
  </div>
  <!-- // maxBox End -->
</div>
<!-- // wrap End -->
</div>
{include file="footer"/}
</body>
</html>